import { openBuildService } from '../../helper/service'

const settings = {
    /*实例模板配置相关的功能接口*/
    getInstanceTempList: {
        url: "/adminc/v1/config_manage/b_instance_page_comp/get_instance_page_comp_list",
        method: 'get',
    },
    getInstanceTempDetail: { //实例模板详情
        url: '/adminc/v1/config_manage/b_instance_page_comp/get_instance_page_comp_info',
        method: 'get'
    },
    addInstanceTemp: { //新增
        url: '/adminc/v1/config_manage/b_instance_page_comp/save_instance_page_comp',
        method: 'post'
    },
    editInstanceTemp: { //修改
        url: '/adminc/v1/config_manage/b_instance_page_comp/edit_instance_page_comp',
        method: 'put'
    },
    editInstanceStatus: { //修改状态
        url: '/adminc/v1/config_manage/b_instance_page_comp/edit_instance_page_comp_status',
        method: 'put'
    },
    delInstanceTemp: { //删除实例模板
        url: '/adminc/v1/config_manage/b_instance_page_comp/del_instance_page_comp',
        method: 'delete'
    },
    getCurrentUserLookTemp: { //获取当前用记可查看的实例模板
        url: '/adminc/v1/config_manage/b_instance_page_comp/get_instance_page_comp_list_by_user',
        method: 'get'
    },
    //当前默认的模板
    setCurrentDefaultTemp: {
        url: '/adminc/v1/config_manage/b_instance_page/set_instance_default',
        method: 'get'
    },
    setInsTempResetName: { //实例模板命名
        url: '/adminc/v1/config_manage/b_instance_page_comp/rename_instance_page_comp',
        method: 'post'
    }
}
export default openBuildService(settings)